<header class="main-header clearfix">
    <div class="row">
        <a href="pandora-homepage.html" class="logo">Pandora</a>
        <span class="slogan">fantastic products &amp; great prices</span>
        <div class="menu">
            <a href="<?php echo Yii::app()->createUrl('cart/index')?>" class="cart"><?php echo $items?> Sản phẩm</a>
            
        </div>
        
    </div>
    
    <nav class="main-menu">
        <ul>
            <?php foreach($menus as $menu):?>
            <li>
                <a href="<?php echo $menu->link?>"><?php echo $menu->name?></a>
                <?php
                    $children = $menu->children()->findAll(array('order'=>'orders ASC'));
                    if(count($children) > 0){
                ?>
                <ul>
                    <?php foreach($children as $item):?>
                    <li><a href="<?php echo $item->link?>"><?php echo $item->name?></a></li>
                    <?php endforeach;?>
                </ul>
                <?php } ?>
            </li>
            <?php endforeach;?>
            
        </ul>
        <select class="navigationSelector">
            <?php foreach($menus as $menu):?>
            <option value="<?php echo $menu->link?>"><?php echo $menu->name?></option>
            <?php endforeach;?>
        </select>
        
    </nav>
    <!-- END .main-header -->
</header>